package com.boot.service.impl;

import com.boot.domain.*;
import com.boot.mapper.*;
import com.boot.service.FourService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FourServiceImpl  implements FourService{

    @Autowired
    private SpotCheckMapper spotCheckMapper;

    @Autowired
    private SpotCheckTypeMapper spotCheckTypeMapper;

    @Autowired
    private ProductTestingMapper productTestingMapper;

    @Autowired
    private ProductTestingResultMapper productTestingResultMapper;

    @Autowired
    private QualificationRateMapper qualificationRateMapper;



    @Override
    public List<SpotCheck> getSpotChecks() {
        return spotCheckMapper.selectAll();
    }

    @Override
    public List<ProductTesting> getProductTestings() {
        return productTestingMapper.selectAll();
    }

    @Override
    public List<ProductTestingResult> getProductTestingResults() {
        return productTestingResultMapper.selectAll();
    }

    @Override
    public List<SpotCheckType> getSpotCheckTypes() {
        return spotCheckTypeMapper.selectAll();
    }

    @Override
    public List<QualificationRate> getQualificationRates() {
        return qualificationRateMapper.selectAll();
    }
}
